<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content=mNote Mac 2.4.10"/><meta name="created" content="2013-07-29T13:54:06Z"/><meta name="updated" content="2013-07-29T13:54:06Z"/><title>[分享]树莓派新版和旧版GPIO对应关系</title></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>
网上会找到很多各种树莓派的例程和库，经常会因为编程者和使用者的树莓派版本不同导致例程无法正确运行，今天就给大家分享一下树莓派256M和512M两个版本的GPIO对应关系，方便大家修改例程，玩机愉快！！！<br>
<font color="#373737" style="border: 0px none rgb(55, 55, 55); color: rgb(55, 55, 55); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(55, 55, 55) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">老版的树莓派GPIO对应关系：&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;新版的树莓派GPIO对应关系：</font><font color="#373737" style="border: 0px none rgb(55, 55, 55); color: rgb(55, 55, 55); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(55, 55, 55) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</font><br>
 
<ignore_js_op style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">

<img id="aimg_358" aid="358" src="http://files.note.sdo.com/M5cEN~kf-aIVnM31Y0073o" zoomfile="http://smpbpic.shamiao.com/forum/201301/21/172719osedxdtucxxc5u60.png" file="http://smpbpic.shamiao.com/forum/201301/21/172719osedxdtucxxc5u60.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="471" inpost="1" alt="Raspberry-Pi-GPIO-Layout-Revision-1.png" title="Raspberry-Pi-GPIO-Layout-Revision-1.png" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" style="width: 471px; height: 1000px; float: none; background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-size: auto; background-position: 0% 0%; background-repeat: repeat repeat;">

<div style="position: absolute; display: none; background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgb(254, 254, 233); background-size: auto; border: 1px solid rgb(177, 177, 177); color: rgb(68, 68, 68); font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 10px; text-decoration: initial; width: 260px; word-wrap: break-word; background-position: 0% 0%; background-repeat: repeat repeat;" disautofocus="true">
<div style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">
<div style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: block; float: right; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;"><span title="2013-1-21 17:27" style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">前天&nbsp;17:27</span> 上传</div>
<a href="http://bbs.shumeipai.org/forum.php?mod=attachment&amp;aid=MzU4fDU2YWYwZWQwfDEzNTg5NDA4MTB8MHwzMDg%3D&amp;nothumb=yes" title="Raspberry-Pi-GPIO-Layout-Revision-1.png 下载次数:0" target="_blank" style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: underline; word-wrap: break-word;"><strong style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: bold; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">下载附件</strong> <span style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: 14px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">(71.64 KB)</span></a>

</div>
<div style="background-image: url(http://bbs.shumeipai.org/static/image/common/tip_bottom.png); background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-size: auto; border: 0px none rgb(68, 68, 68); bottom: -6px; color: rgb(68, 68, 68); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; height: 6px; left: 5px; margin: 0px; outline: rgb(68, 68, 68) none 0px; overflow: hidden; padding: 0px; position: absolute; text-decoration: initial; width: 11px; word-wrap: break-word; background-position: 0% 0%; background-repeat: repeat repeat;"></div>
</div>

</ignore_js_op>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 
<ignore_js_op style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">

<img id="aimg_359" aid="359" src="http://files.note.sdo.com/M5cEN~kf-aIVnM31Y0073q" zoomfile="http://smpbpic.shamiao.com/forum/201301/21/172723iyhv42sh2f522zqh.png" file="http://smpbpic.shamiao.com/forum/201301/21/172723iyhv42sh2f522zqh.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="471" inpost="1" alt="Raspberry-Pi-GPIO-Layout-Revision-2.png" title="Raspberry-Pi-GPIO-Layout-Revision-2.png" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" style="width: 471px; height: 1000px; float: none; background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-size: auto; background-position: 0% 0%; background-repeat: repeat repeat;">

<div style="position: absolute; display: none; background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgb(254, 254, 233); background-size: auto; border: 1px solid rgb(177, 177, 177); color: rgb(68, 68, 68); font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 10px; text-decoration: initial; width: 260px; word-wrap: break-word; background-position: 0% 0%; background-repeat: repeat repeat;" disautofocus="true">
<div style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">
<div style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: block; float: right; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;"><span title="2013-1-21 17:27" style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">前天&nbsp;17:27</span> 上传</div>
<a href="http://bbs.shumeipai.org/forum.php?mod=attachment&amp;aid=MzU5fDEzM2MwZTVkfDEzNTg5NDA4MTB8MHwzMDg%3D&amp;nothumb=yes" title="Raspberry-Pi-GPIO-Layout-Revision-2.png 下载次数:0" target="_blank" style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: underline; word-wrap: break-word;"><strong style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: bold; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">下载附件</strong> <span style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: 14px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">(72.01 KB)</span></a>

</div>
<div style="background-image: url(http://bbs.shumeipai.org/static/image/common/tip_bottom.png); background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-size: auto; border: 0px none rgb(68, 68, 68); bottom: -6px; color: rgb(68, 68, 68); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; height: 6px; left: 5px; margin: 0px; outline: rgb(68, 68, 68) none 0px; overflow: hidden; padding: 0px; position: absolute; text-decoration: initial; width: 11px; word-wrap: break-word; background-position: 0% 0%; background-repeat: repeat repeat;"></div>
</div>

</ignore_js_op>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color="#373737" style="border: 0px none rgb(55, 55, 55); color: rgb(55, 55, 55); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(55, 55, 55) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">&nbsp;&nbsp;</font><br>
RPI.GPIO库中对应关系<br>

<ignore_js_op style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">

<img id="aimg_357" aid="357" src="http://files.note.sdo.com/M5cEN~kf-aJ9nM31Y0073s" zoomfile="http://smpbpic.shamiao.com/forum/201301/21/120505s878s9fiilx9o999.jpg" file="http://smpbpic.shamiao.com/forum/201301/21/120505s878s9fiilx9o999.jpg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" alt="GPIO对应表.jpg" title="GPIO对应表.jpg" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" initialized="true" style="width: 600px; height: 152px; float: none; background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-size: auto; background-position: 0% 0%; background-repeat: repeat repeat;">

<div style="position: absolute; z-index: 301; left: 377.5px; top: 1353px; display: none; background-image: none; background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgb(254, 254, 233); background-size: auto; border: 1px solid rgb(177, 177, 177); color: rgb(68, 68, 68); font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 10px; text-decoration: initial; width: 260px; word-wrap: break-word; background-position: 0% 0%; background-repeat: repeat repeat;" disautofocus="true" initialized="true">
<div style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">
<div style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: block; float: right; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;"><span title="2013-1-21 12:05" style="border: 0px none rgb(68, 68, 68); color: rgb(68, 68, 68); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(68, 68, 68) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">前天&nbsp;12:05</span> 上传</div>
<a href="http://bbs.shumeipai.org/forum.php?mod=attachment&amp;aid=MzU3fGE3N2MwNTg1fDEzNTg5NDA4MTB8MHwzMDg%3D&amp;nothumb=yes" title="GPIO对应表.jpg 下载次数:0" target="_blank" style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: underline; word-wrap: break-word;"><strong style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: bold; font-size: 12px; line-height: 17px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">下载附件</strong> <span style="border: 0px none rgb(51, 102, 153); color: rgb(51, 102, 153); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: 14px; font-family: Tahoma, Helvetica, sans-serif; margin: 0px; outline: rgb(51, 102, 153) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">(84.22 KB)</span></a>

</div>
<div style="background-image: url(http://bbs.shumeipai.org/static/image/common/tip_bottom.png); background-attachment: scroll; background-origin: padding-box; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-size: auto; border: 0px none rgb(68, 68, 68); bottom: -6px; color: rgb(68, 68, 68); display: block; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; height: 6px; left: 5px; margin: 0px; outline: rgb(68, 68, 68) none 0px; overflow: hidden; padding: 0px; position: absolute; text-decoration: initial; width: 11px; word-wrap: break-word; background-position: 0% 0%; background-repeat: repeat repeat;"></div>
</div>

</ignore_js_op>
<font color="#373737" style="border: 0px none rgb(55, 55, 55); color: rgb(55, 55, 55); display: inline; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: Tahoma, Helvetica, SimSun, sans-serif; margin: 0px; outline: rgb(55, 55, 55) none 0px; padding: 0px; text-decoration: initial; word-wrap: break-word;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; </font></div><div><br></div></body></html>